<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/util.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $(".click").click(function(){
  $(".tip").fadeIn(200);
  });
  
  $(".tiptop a").click(function(){
  $(".tip").fadeOut(200);
});

  $(".sure").click(function(){
  $(".tip").fadeOut(100);
});

  $(".cancel").click(function(){
  $(".tip").fadeOut(100);
});
	showWait(1,10);
});
function showWait(index,size){
	$.post("wait!findList.action",{pageIndex:index,pageSize:size},function(data){
		var bean = eval("("+data+")");
		var rows = bean.rows;
		var html = "";
		for(var i =0;i<rows.length;i++){
			html+="<tr>";
			html+="<td>"+rows[i].type+"</td><td>"+rows[i].name+"</td>";
			if(rows[i].routeNo!=null){
				var kh="";
				if(rows[i].startNo!=null){
					kh="("+rows[i].startNo+"-"+rows[i].endNo+")";
				}
				html+="<td>"+rows[i].routeNo+kh+"</td>";
			}else{
				html+="<td>无</td>";
			}
			if(rows[i].createName!=null){
				html+="<td>"+rows[i].createName+"</td>";
			}else{
				html+="<td>无</td>";
			}
			html+="<td>"+rows[i].time+"</td>";
			if(rows[i].remark!=null){
				html+="<td>"+rows[i].remark+"</td>";
			}else{
				html+="<td>无</td>";
			}
			html+=" <td><a href='"+rows[i].url+"' class='tablelink'>查看</a></td></tr>";
		}
		console.info(html);
		$("#waitList").html(html); 

	
		var pager = pager2(bean,size,"showWait");
		$(".pagin").html(pager);
		$('.tablelist tbody tr:odd').addClass('odd');
		
	});
}
</script>


</head>


<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">工作平台</a></li>
    <li><a href="#">待办列表</a></li>
    </ul>
    </div>
    
    <div class="rightinfo">
    
    
    <table class="tablelist">
    	<thead>
    	<tr>
        <th>待办任务类型</th>
        <th>待办任务名称</th>
        <th>线路名称(起始杆塔-终止杆塔)</th>
        <th>创建人/提交人</th>
        <th>创建时间</th>
        <th>备注</th>
        <th>操作</th>
        </tr>
        </thead>
        <tbody id="waitList">
        
         </tbody>
    </table>
    
   
    <div class="pagin">
     </div>
    
    
       
    
    
    
    </div>
    </body>
</html>
